package com.xjrsoft.module.customer.erp_model.goodsManage.vo;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import com.xjrsoft.common.Enum.TransDataType;
import com.xjrsoft.common.annotation.DataTrans;
import io.swagger.annotations.ApiModel;

/**
 * 视图实体类
 *
 * @author pp
 * @since 2021-10-09
 */
@Data
@ApiModel(value = "列表ErpGoodsVo对象", description = "列表ErpGoodsVo对象")
public class ErpGoodsListVo {

    @JsonProperty("F_Id")
    private String fId;

    @JsonProperty("F_EnCode")
    private String fEncode;

    @JsonProperty("F_FullName")
    private String fFullname;

    @JsonProperty("F_BarCode")
    private String fBarcode;

    @JsonProperty("F_Brand")
    private String fBrand;

    @JsonProperty("F_Specs")
    private String fSpecs;

    @JsonProperty("F_DefaultWarehouse")
    @DataTrans(dataType = TransDataType.DATA_SQL, dataCode = "localDB", sql = "select w.F_Id,w.F_FullName from erp_warehouse w", savedField = "F_Id", showField = "F_FullName", multi = false)
    private String fDefaultwarehouse;

    @JsonProperty("F_BasicUnit")
    @DataTrans(dataType = TransDataType.DATA_SQL, dataCode = "localDB", sql = "select c.F_Id,c.F_FullName from erp_unitconvert c", savedField = "F_Id", showField = "F_FullName", multi = false)
    private String fBasicunit;

    @JsonProperty("F_InUnit")
    @DataTrans(dataType = TransDataType.DATA_SQL, dataCode = "localDB", sql = "select c.F_Id,c.F_FullName from erp_unitconvert c", savedField = "F_Id", showField = "F_FullName", multi = false)
    private String fInunit;

    @JsonProperty("F_OutUnit")
    @DataTrans(dataType = TransDataType.DATA_SQL, dataCode = "localDB", sql = "select c.F_Id,c.F_FullName from erp_unitconvert c", savedField = "F_Id", showField = "F_FullName", multi = false)
    private String fOutunit;

    @JsonProperty("F_ComUnit")
    @DataTrans(dataType = TransDataType.DATA_SQL, dataCode = "localDB", sql = "select c.F_Id,c.F_FullName F_ComUnit from erp_unitconvert c", savedField = "F_Id", showField = "F_ComUnit", multi = false)
    private String fComunit;

    @JsonProperty("F_SalePrice")
    private BigDecimal fSaleprice;

    @JsonProperty("F_CostPrice")
    private BigDecimal fCostprice;

    @JsonProperty("F_GoodsImage")
    private String fGoodsimage;

    @JsonProperty("F_Description")
    private String fDescription;

    @JsonProperty("F_GoodsCategoryId")
    @DataTrans(dataType = TransDataType.DATA_SQL, dataCode = "localDB", sql = "select w.F_Id,w.F_FullName from erp_goodscategory w", savedField = "F_Id", showField = "F_FullName", multi = false)
    private String fGoodscategoryid;


    @JsonProperty("flowStatus")
    private String flowStatus;

    @JsonProperty("nwfSchemeinfoId")
    private String nwfSchemeinfoId;

    @JsonProperty("formId")
    private String formId;
}
